#include"heap.h"
int main()
{
	Heap hp;
	HeapInte(&hp);
	HeapPush(&hp, 3);
	HeapPush(&hp, 12);
	HeapPush(&hp, 16);
	HeapPush(&hp, 67);
	HeapPush(&hp, 56);
	HeapPush(&hp, 43);
	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.data[i]);
	}
	printf("\n");
	HeapPop(&hp);
	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.data[i]);
	}
	printf("\n");
	HeapPop(&hp);
	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.data[i]);
	}
	printf("\n");
	HeapPop(&hp);
	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.data[i]);
	}
	printf("\n");
	HeapPop(&hp);
	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.data[i]);
	}
	printf("\n");
	HeapPop(&hp);
	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.data[i]);
	}
	printf("\n");
	HeapPop(&hp);
	HeapPop(&hp);
	printf("\n");
	printf("%d\n", HeapTop(&hp));
	printf("%d\n", HeapSize(&hp));
	printf("%d\n", HeapEmpty(&hp));
	HeapDestory(&hp);
	return 0;
}